Skip to content

Change VerifiablePresentation to TokenContentVerifiablePresentation#993

Merged
Milena-Czierlinski merged 7 commits intorelease/openid4vcfrom
verifiable-presentation-token-content
Mar 12, 2026
Merged

Change VerifiablePresentation to TokenContentVerifiablePresentation#993
Milena-Czierlinski merged 7 commits intorelease/openid4vcfrom
verifiable-presentation-token-content

Conversation

@Milena-Czierlinski
Copy link
Copy Markdown
Member

@Milena-Czierlinski Milena-Czierlinski commented Mar 12, 2026

Readiness checklist

  • I added/updated tests.
  • I ensured that the PR title is good enough for the changelog.
  • I labeled the PR.
  • I self-reviewed the PR.

Description

We noticed in the app that it is strange to have VerifiablePresentation in the AttributeValues, since it is not an attribute. Instead, it should be used as content in the token. We already have a special token content called TokenContentDeviceSharedSecret. Accordingly, it makes sense for us to have a TokenContentVerifiablePresentation as well.

@Milena-Czierlinski Milena-Czierlinski added the refactoring Refactoring of code label Mar 12, 2026
@Milena-Czierlinski Milena-Czierlinski marked this pull request as ready for review March 12, 2026 11:58
@Milena-Czierlinski Milena-Czierlinski changed the title Make VerifiablePresentation to TokenContentVerifiablePresentation Change VerifiablePresentation to TokenContentVerifiablePresentation Mar 12, 2026
Copy link
Copy Markdown
Member

@tnotheis tnotheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this change is necessary?

Copy link
Copy Markdown
Contributor

@Magnus-Kuhn Magnus-Kuhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only a small thing

Magnus-Kuhn
Magnus-Kuhn previously approved these changes Mar 12, 2026
Magnus-Kuhn
Magnus-Kuhn previously approved these changes Mar 12, 2026
@Magnus-Kuhn
Copy link
Copy Markdown
Contributor

tbh I don't know what the best practices are regarding those imports 😃

@Milena-Czierlinski Milena-Czierlinski added enhancement New feature or request and removed refactoring Refactoring of code labels Mar 12, 2026
@Milena-Czierlinski
Copy link
Copy Markdown
Member Author

Typically we put as much as possible into the barrel files (index.js) if it is needed in other files outside of the respective directory. We have to check that we don't introduce circular dependencies by doing so. But I think I didn't.

@Milena-Czierlinski Milena-Czierlinski merged commit 99f96df into release/openid4vc Mar 12, 2026
17 checks passed
@Milena-Czierlinski Milena-Czierlinski deleted the verifiable-presentation-token-content branch March 12, 2026 15:46
Magnus-Kuhn pushed a commit that referenced this pull request Mar 27, 2026
…993)

* refactor: make VerifiablePresentation to TokenContentVerifiablePresentation

* test: adjust expected type of token content

* test: app-runtime test

* chore: re-add TokenContentVerifiablePresentation

* chore: type

* refactor: add ProprietaryAttributeValue to barrel file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants